'use strict';
module.exports = app => {
  const { STRING, CHAR } = app.Sequelize; // 获取数据类型
  const OltType = app.modelmysql.define('olttype',
    {
      id: {
        type: CHAR(27),
        primaryKey: true,
      },
      name: { type: STRING },
      tid: { type: CHAR(27) },
    }
  );
  OltType.associate = function() {
    app.modelmysql.OltType.hasMany(app.modelmysql.Script);
  };
  return OltType;
};
